Detect menu-items in which-key--get-keymap-bindings
authorJustin Burkett <justin@burkett.cc>
Mon, 26 Feb 2018 03:35:38 +0000 (22:35 -0500)
committerJustin Burkett <justin@burkett.cc>
Mon, 26 Feb 2018 03:35:38 +0000 (22:35 -0500)
which-key.el

index c4900e73844dfc746f854fbee2ebeb6cbf13d2d4..765fd37bd012f338f8f9721a668ba4ec6581b9da 100644 (file)
@@ -1673,6 +1673,7 @@ ones. PREFIX is for internal use and should not be used."
                      ((keymapp def) "Prefix Command")
                      ((symbolp def) (copy-sequence (symbol-name def)))
                      ((eq 'lambda (car-safe def)) "lambda")
+                     ((eq 'menu-item (car-safe def)) "menu-item")
                      (t (format "%s" def))))
               bindings :test (lambda (a b) (string= (car a) (car b))))))))
      keymap)